home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
CDRAGICO
/
ABOUT_TH.IS_
Wrap
Text File
|
1992-07-19
|
2KB
|
43 lines
This release of CDragIcon fixes a bug which never showed itself in
the application I was writing, but DOES show itself in the demo
application. The bug? Click on the shaded disk-drive-like-thingie
icon, drag the mouse away from it (so it becomes unhighlighted), and
release the mouse. Now drag the smiley face around. Whoops! It's
being clipped to the old icon's area. (What actually was happening
has to do with class variables. The icon mask is a class variable,
which means one location is shared by ALL instances of CIconPane,
including all subclasses.)
This package includes the fix to CDragIcon. I╒m uploading this fix
in two forms: a replacement archive containing the full
distribution, and an ╥update╙ archive. This file is going in both
archives. If you downloaded the replacement archive, named
CDragIcon Demo.cpt (or .sea if you got it from America Online),
you╒re all set to go, although you may want to read the following
notes if you╒ve been using CDragIcon. If you downloaded the update
archive, named CDragIcon Demo Update.cpt (or .sea), you╒ll
DEFINITELY want to read the update instructions following.
Thanks to Joe Zobkiw for finding this bug.
WHAT CHANGED:
Ñ Added CalcMask call to CDragIcon::DoClick method
Ñ Eliminated CDragIcon Class Vars.c, putting the class variable
declaration directly into CDragIcon.c
Ñ Updated to THINK C 5.0.2 (which only affects the demo application)
HOW TO UPDATE:
If you╒ve got the update archive, you should have two files besides
this one. One is the replacement CDragIcon.c file, which you should
copy over your old one. The other is an updater for the demo
application; just double-click and run. (This was created by
UpdateMaker 1.2b1, a great little update creation utility.) You
should also remove CDragIcon Class Vars.c from the Starter.╣
project, and delete the file from wherever you put it.
If you╒ve got the replacement archive, just have it replace all
the files from the old one. You may have to update your own
projects to remove CDragIcon Class Vars.c as mentioned above.